"""
# 超市买苹果增强版
# 输入苹果单价
price_str = input("苹果的单价：")

# 输入苹果重量

weight_str = input("苹果的重量：")

# 计算支付金额

price = float(price_str)
weight = float(weight_str)
money = price*weight
print(money)
"""
price =  float(input("苹果的单价"))  # 减少了变量数

weight = float(input("苹果的重量："))

money = price*weight

print(money)